package net.kazed.nextaction.database.serialize;

import java.util.Date;

import net.kazed.nextaction.database.GtdAndroid;
import android.net.Uri;

public class BackupFileSummary {

    public static final String URI_SUFFIX = "backupSummary";
    public static final Uri CONTENT_URI = Uri.parse("content://" + GtdAndroid.PACKAGE + "/" + URI_SUFFIX);
    public static final Uri CONTENT_ITEM_URI = Uri.parse("content://" + GtdAndroid.PACKAGE + "/" + URI_SUFFIX + "/#");
    public static final String CONTENT_LIST_TYPE = "vnd.android.cursor.dir/vnd.nextaction.backupSummary";
    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.nextaction.backupSummary";
    public static final String COLUMN_ID = "id";
    public static final String COLUMN_CREATE_DATE = "createDate";
    public static final String COLUMN_NUMBER_OF_CONTEXTS = "numberOfContexts";
    public static final String COLUMN_NUMBER_OF_TASKS = "numberOfTasks";
    
    private Date createDate;
    private int numberOfContexts;
    private int numberOfTasks;
    
    /**
     * Constructor.
     * @param createDate Creation date.
     * @param numberOfContexts Number of contexts.
     * @param numberOfTasks Number of tasks.
     */
    public BackupFileSummary(Date createDate, int numberOfContexts,
            int numberOfTasks) {
        super();
        this.createDate = createDate;
        this.numberOfContexts = numberOfContexts;
        this.numberOfTasks = numberOfTasks;
    }

    /**
     * @return Creation date.
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @return Number of contexts.
     */
    public int getNumberOfContexts() {
        return numberOfContexts;
    }

    /**
     * @return Number of tasks.
     */
    public int getNumberOfTasks() {
        return numberOfTasks;
    }
    
    
}
